package com.entity;

import java.util.ArrayList;
import java.util.List;

public class SetmealExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SetmealExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSmidIsNull() {
            addCriterion("SMID is null");
            return (Criteria) this;
        }

        public Criteria andSmidIsNotNull() {
            addCriterion("SMID is not null");
            return (Criteria) this;
        }

        public Criteria andSmidEqualTo(String value) {
            addCriterion("SMID =", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotEqualTo(String value) {
            addCriterion("SMID <>", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidGreaterThan(String value) {
            addCriterion("SMID >", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidGreaterThanOrEqualTo(String value) {
            addCriterion("SMID >=", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLessThan(String value) {
            addCriterion("SMID <", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLessThanOrEqualTo(String value) {
            addCriterion("SMID <=", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLike(String value) {
            addCriterion("SMID like", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotLike(String value) {
            addCriterion("SMID not like", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidIn(List<String> values) {
            addCriterion("SMID in", values, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotIn(List<String> values) {
            addCriterion("SMID not in", values, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidBetween(String value1, String value2) {
            addCriterion("SMID between", value1, value2, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotBetween(String value1, String value2) {
            addCriterion("SMID not between", value1, value2, "smid");
            return (Criteria) this;
        }

        public Criteria andSmnameIsNull() {
            addCriterion("SMNAME is null");
            return (Criteria) this;
        }

        public Criteria andSmnameIsNotNull() {
            addCriterion("SMNAME is not null");
            return (Criteria) this;
        }

        public Criteria andSmnameEqualTo(String value) {
            addCriterion("SMNAME =", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameNotEqualTo(String value) {
            addCriterion("SMNAME <>", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameGreaterThan(String value) {
            addCriterion("SMNAME >", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameGreaterThanOrEqualTo(String value) {
            addCriterion("SMNAME >=", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameLessThan(String value) {
            addCriterion("SMNAME <", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameLessThanOrEqualTo(String value) {
            addCriterion("SMNAME <=", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameLike(String value) {
            addCriterion("SMNAME like", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameNotLike(String value) {
            addCriterion("SMNAME not like", value, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameIn(List<String> values) {
            addCriterion("SMNAME in", values, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameNotIn(List<String> values) {
            addCriterion("SMNAME not in", values, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameBetween(String value1, String value2) {
            addCriterion("SMNAME between", value1, value2, "smname");
            return (Criteria) this;
        }

        public Criteria andSmnameNotBetween(String value1, String value2) {
            addCriterion("SMNAME not between", value1, value2, "smname");
            return (Criteria) this;
        }

        public Criteria andSmdescIsNull() {
            addCriterion("SMDESC is null");
            return (Criteria) this;
        }

        public Criteria andSmdescIsNotNull() {
            addCriterion("SMDESC is not null");
            return (Criteria) this;
        }

        public Criteria andSmdescEqualTo(String value) {
            addCriterion("SMDESC =", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescNotEqualTo(String value) {
            addCriterion("SMDESC <>", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescGreaterThan(String value) {
            addCriterion("SMDESC >", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescGreaterThanOrEqualTo(String value) {
            addCriterion("SMDESC >=", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescLessThan(String value) {
            addCriterion("SMDESC <", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescLessThanOrEqualTo(String value) {
            addCriterion("SMDESC <=", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescLike(String value) {
            addCriterion("SMDESC like", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescNotLike(String value) {
            addCriterion("SMDESC not like", value, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescIn(List<String> values) {
            addCriterion("SMDESC in", values, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescNotIn(List<String> values) {
            addCriterion("SMDESC not in", values, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescBetween(String value1, String value2) {
            addCriterion("SMDESC between", value1, value2, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmdescNotBetween(String value1, String value2) {
            addCriterion("SMDESC not between", value1, value2, "smdesc");
            return (Criteria) this;
        }

        public Criteria andSmpriceIsNull() {
            addCriterion("SMPRICE is null");
            return (Criteria) this;
        }

        public Criteria andSmpriceIsNotNull() {
            addCriterion("SMPRICE is not null");
            return (Criteria) this;
        }

        public Criteria andSmpriceEqualTo(Float value) {
            addCriterion("SMPRICE =", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotEqualTo(Float value) {
            addCriterion("SMPRICE <>", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceGreaterThan(Float value) {
            addCriterion("SMPRICE >", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceGreaterThanOrEqualTo(Float value) {
            addCriterion("SMPRICE >=", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceLessThan(Float value) {
            addCriterion("SMPRICE <", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceLessThanOrEqualTo(Float value) {
            addCriterion("SMPRICE <=", value, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceIn(List<Float> values) {
            addCriterion("SMPRICE in", values, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotIn(List<Float> values) {
            addCriterion("SMPRICE not in", values, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceBetween(Float value1, Float value2) {
            addCriterion("SMPRICE between", value1, value2, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmpriceNotBetween(Float value1, Float value2) {
            addCriterion("SMPRICE not between", value1, value2, "smprice");
            return (Criteria) this;
        }

        public Criteria andSmcalorieIsNull() {
            addCriterion("SMCALORIE is null");
            return (Criteria) this;
        }

        public Criteria andSmcalorieIsNotNull() {
            addCriterion("SMCALORIE is not null");
            return (Criteria) this;
        }

        public Criteria andSmcalorieEqualTo(String value) {
            addCriterion("SMCALORIE =", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieNotEqualTo(String value) {
            addCriterion("SMCALORIE <>", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieGreaterThan(String value) {
            addCriterion("SMCALORIE >", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieGreaterThanOrEqualTo(String value) {
            addCriterion("SMCALORIE >=", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieLessThan(String value) {
            addCriterion("SMCALORIE <", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieLessThanOrEqualTo(String value) {
            addCriterion("SMCALORIE <=", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieLike(String value) {
            addCriterion("SMCALORIE like", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieNotLike(String value) {
            addCriterion("SMCALORIE not like", value, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieIn(List<String> values) {
            addCriterion("SMCALORIE in", values, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieNotIn(List<String> values) {
            addCriterion("SMCALORIE not in", values, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieBetween(String value1, String value2) {
            addCriterion("SMCALORIE between", value1, value2, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmcalorieNotBetween(String value1, String value2) {
            addCriterion("SMCALORIE not between", value1, value2, "smcalorie");
            return (Criteria) this;
        }

        public Criteria andSmproteinIsNull() {
            addCriterion("SMPROTEIN is null");
            return (Criteria) this;
        }

        public Criteria andSmproteinIsNotNull() {
            addCriterion("SMPROTEIN is not null");
            return (Criteria) this;
        }

        public Criteria andSmproteinEqualTo(String value) {
            addCriterion("SMPROTEIN =", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinNotEqualTo(String value) {
            addCriterion("SMPROTEIN <>", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinGreaterThan(String value) {
            addCriterion("SMPROTEIN >", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinGreaterThanOrEqualTo(String value) {
            addCriterion("SMPROTEIN >=", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinLessThan(String value) {
            addCriterion("SMPROTEIN <", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinLessThanOrEqualTo(String value) {
            addCriterion("SMPROTEIN <=", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinLike(String value) {
            addCriterion("SMPROTEIN like", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinNotLike(String value) {
            addCriterion("SMPROTEIN not like", value, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinIn(List<String> values) {
            addCriterion("SMPROTEIN in", values, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinNotIn(List<String> values) {
            addCriterion("SMPROTEIN not in", values, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinBetween(String value1, String value2) {
            addCriterion("SMPROTEIN between", value1, value2, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmproteinNotBetween(String value1, String value2) {
            addCriterion("SMPROTEIN not between", value1, value2, "smprotein");
            return (Criteria) this;
        }

        public Criteria andSmsugarIsNull() {
            addCriterion("SMSUGAR is null");
            return (Criteria) this;
        }

        public Criteria andSmsugarIsNotNull() {
            addCriterion("SMSUGAR is not null");
            return (Criteria) this;
        }

        public Criteria andSmsugarEqualTo(String value) {
            addCriterion("SMSUGAR =", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarNotEqualTo(String value) {
            addCriterion("SMSUGAR <>", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarGreaterThan(String value) {
            addCriterion("SMSUGAR >", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarGreaterThanOrEqualTo(String value) {
            addCriterion("SMSUGAR >=", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarLessThan(String value) {
            addCriterion("SMSUGAR <", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarLessThanOrEqualTo(String value) {
            addCriterion("SMSUGAR <=", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarLike(String value) {
            addCriterion("SMSUGAR like", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarNotLike(String value) {
            addCriterion("SMSUGAR not like", value, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarIn(List<String> values) {
            addCriterion("SMSUGAR in", values, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarNotIn(List<String> values) {
            addCriterion("SMSUGAR not in", values, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarBetween(String value1, String value2) {
            addCriterion("SMSUGAR between", value1, value2, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmsugarNotBetween(String value1, String value2) {
            addCriterion("SMSUGAR not between", value1, value2, "smsugar");
            return (Criteria) this;
        }

        public Criteria andSmstateIsNull() {
            addCriterion("SMSTATE is null");
            return (Criteria) this;
        }

        public Criteria andSmstateIsNotNull() {
            addCriterion("SMSTATE is not null");
            return (Criteria) this;
        }

        public Criteria andSmstateEqualTo(Integer value) {
            addCriterion("SMSTATE =", value, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateNotEqualTo(Integer value) {
            addCriterion("SMSTATE <>", value, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateGreaterThan(Integer value) {
            addCriterion("SMSTATE >", value, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("SMSTATE >=", value, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateLessThan(Integer value) {
            addCriterion("SMSTATE <", value, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateLessThanOrEqualTo(Integer value) {
            addCriterion("SMSTATE <=", value, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateIn(List<Integer> values) {
            addCriterion("SMSTATE in", values, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateNotIn(List<Integer> values) {
            addCriterion("SMSTATE not in", values, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateBetween(Integer value1, Integer value2) {
            addCriterion("SMSTATE between", value1, value2, "smstate");
            return (Criteria) this;
        }

        public Criteria andSmstateNotBetween(Integer value1, Integer value2) {
            addCriterion("SMSTATE not between", value1, value2, "smstate");
            return (Criteria) this;
        }

        public Criteria andDidIsNull() {
            addCriterion("did is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("did is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(String value) {
            addCriterion("did =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(String value) {
            addCriterion("did <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(String value) {
            addCriterion("did >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(String value) {
            addCriterion("did >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(String value) {
            addCriterion("did <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(String value) {
            addCriterion("did <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLike(String value) {
            addCriterion("did like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotLike(String value) {
            addCriterion("did not like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<String> values) {
            addCriterion("did in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<String> values) {
            addCriterion("did not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(String value1, String value2) {
            addCriterion("did between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(String value1, String value2) {
            addCriterion("did not between", value1, value2, "did");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}